//
//  CheckInfoFrame.m
//  掌上宏力
//
//  Created by admin on 2017/5/15.
//  Copyright © 2017年 admin. All rights reserved.
//

#import "CheckInfoFrame.h"
#import "CheckInfoModel.h"

@implementation CheckInfoFrame



-(void)setCheckInfo:(CheckInfoModel *)checkInfo{
    _checkInfo = checkInfo;
    CGFloat lab_H = 30;
    _exam_nameF = CGRectMake(LeftDis, 5, kScreenW-LeftDis*4, lab_H);
    _physicianF = CGRectMake(LeftDis, CGRectGetMaxY(_exam_nameF), 100, lab_H);
    _reporterF = CGRectMake(CGRectGetMaxX(_physicianF)+10, CGRectGetMaxY(_exam_nameF), 130, lab_H);
    _costsF = CGRectMake(CGRectGetMaxX(_reporterF), CGRectGetMaxY(_exam_nameF), 100, lab_H);
    
    CGSize clinSize = [Factory sizeWithText:self.checkInfo.clin_symp font:kFont(14) maxSize:CGSizeMake(kScreenW-40, MAXFLOAT)];
    _clin_sympF = CGRectMake(LeftDis, CGRectGetMaxY(_physicianF), clinSize.width, clinSize.height);
    
    CGSize physSize = [Factory sizeWithText:self.checkInfo.phys_sign font:kFont(14) maxSize:CGSizeMake(kScreenW-40, MAXFLOAT)];
    _phys_signF = CGRectMake(LeftDis, CGRectGetMaxY(_clin_sympF)+5, physSize.width, physSize.height);
    _cellHeight = CGRectGetMaxY(_phys_signF)+10;;
}

@end
